<script>
import { setTabBar } from '@/utils'
export default {
	globalData: {
		is_ab: '',
		step_normal: '',
		step_fast: ''
	},
	onLaunch: function () {
		setTabBar()
		const token = uni.getStorageSync('token')
		if (!token) {
			uni.reLaunch({
				url: '/pages/login/login'
			})
		}
	},
	onShow: function () {
		setTabBar()
	},
	onHide: function () {
		console.log('App Hide')
	},
	methods: {}
}
</script>

<style lang="scss">
/*每个页面公共css */
@import 'uview-ui/index.scss';
page {
	background-color: #f5f5f5;
	animation: fadeIn 0.5s ease both;
}
@keyframes fadeIn {
	from {
		opacity: 0.3;
	}
	to {
	}
}
.headle:active {
	opacity: 0.5;
}
.status_bar {
	height: var(--status-bar-height);
	width: 100%;
}
::v-deep .mask {
	z-index: 9999999;
}
.err_btn {
	width: 396rpx;
	height: 88rpx;
	line-height: 88rpx;
	text-align: center;
	background: linear-gradient(270deg, #0481fe 0%, #40c5fe 100%);
	border-radius: 70rpx;
	font-size: 32rpx;
	font-family: PingFang SC;
	font-weight: 400;
	color: #ffffff;
	margin-top: 40rpx;
}
</style>
